package com.example.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.example.common.annotation.Excel;
import com.example.common.core.domain.BaseEntity;

/**
 * 薪资管理对象 table_info
 * 
 * @author Zhf
 * @date 2025-01-18
 */
public class TableInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /**  员工姓名 */
    @Excel(name = " 员工姓名")
    private String name;

    /** 员工司龄 */
    @Excel(name = "员工司龄")
    private Long age;

    /**  员工基础薪资 */
    @Excel(name = " 员工基础薪资")
    private BigDecimal basicsSalary;

    /** 保险公积金扣除 */
    @Excel(name = "保险公积金扣除")
    private BigDecimal salary;

    /** 实发薪资 */
    @Excel(name = "实发薪资")
    private BigDecimal actually;

    /** 发放时间  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发放时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /**  薪资确认(1确认0未确认) */
    @Excel(name = " 薪资确认(1确认0未确认)")
    private Long confirmation;

    /** 账户权限(1管理员0员工) */
    @Excel(name = "账户权限(1管理员0员工)")
    private Long power;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setBasicsSalary(BigDecimal basicsSalary) 
    {
        this.basicsSalary = basicsSalary;
    }

    public BigDecimal getBasicsSalary() 
    {
        return basicsSalary;
    }
    public void setSalary(BigDecimal salary) 
    {
        this.salary = salary;
    }

    public BigDecimal getSalary() 
    {
        return salary;
    }
    public void setActually(BigDecimal actually) 
    {
        this.actually = actually;
    }

    public BigDecimal getActually() 
    {
        return actually;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setConfirmation(Long confirmation) 
    {
        this.confirmation = confirmation;
    }

    public Long getConfirmation() 
    {
        return confirmation;
    }
    public void setPower(Long power) 
    {
        this.power = power;
    }

    public Long getPower() 
    {
        return power;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("age", getAge())
            .append("basicsSalary", getBasicsSalary())
            .append("salary", getSalary())
            .append("actually", getActually())
            .append("time", getTime())
            .append("confirmation", getConfirmation())
            .append("power", getPower())
            .toString();
    }
}
